package com.dongjiantong.farmrecords.model;

import com.dongjiantong.common.utils.JsonMapper;
import com.dongjiantong.mybatis.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Strings;
import lombok.Data;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.IOException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 牛档案
 */
@Data
@Table(name = "farmrecords_cow_records")
public class FarmRecordsCowRecords extends BaseEntity implements Serializable {
    private static final ObjectMapper objectMapper = JsonMapper.nonEmptyMapper().getMapper();

    private String number;

    private Long farm_id;

    private String farm_name;

    private Long stable_id;

    private String stable_number;

    private Long owner_id;

    private String owner_name;

    private String owner_mobile;

    private Integer breed_second_type;

    private Integer breed_third_type;

    private String cow_number;

    private String ear_tag_number;

    private Integer current_stock;

    private Date birthday;

    private Integer is_selected;

    private Integer status;

    private Integer delete_flag;

    private Date created_at;

    private Date updated_at;

}